﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace hello_accinv
{
    class CurrentDateTime
    {
        public static string GetDate()
        {
            string date = DateTime.Today.ToShortDateString();
            string[] split = date.Split('/');
            return (Int32.Parse(split[2]) - 543) + "-" + ((split[1].Length == 1) ? "0" : "") + split[1] + "-" + ((split[0].Length == 1) ? "0" : "") + split[0];
        }

        public static string GetTime()
        {
            return DateTime.Now.ToLongTimeString();
        }
    }
}
